package com.vincent.filepickersample;

import ohos.app.Context;

/**
 * Created by Vincent Woo
 * Date: 2015/10/29
 * Time: 15:31
 */

public class LocalFileUncaughtExceptionHandler implements Thread.UncaughtExceptionHandler {
    private Context mContext;
    private Thread.UncaughtExceptionHandler mDefaultHandler;

    public LocalFileUncaughtExceptionHandler(Context context, Thread.UncaughtExceptionHandler defaultHandler) {
        this.mDefaultHandler = defaultHandler;
        this.mContext = context;
    }

    @Override
    public void uncaughtException(Thread thread, Throwable ex) {
        System.out.println("Crash Application crash" + ex);
        mDefaultHandler.uncaughtException(thread, ex);
    }

}
